package com.youmu.sichuansfc.domain;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

@Entity
@Table(name = "youmu_fund_manager_partner", schema = "youmu", catalog = "")
public class YoumuFundManagerPartner {
    private Long id;
    private Date addTime;
    private Integer status;
    private String name;
    private long fundManagerId;
    private Boolean isDelete;
    private String locDetail;
    private String partnerType;

    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "add_time")
    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "fund_manager_id")
    public long getFundManagerId() {
        return fundManagerId;
    }

    public void setFundManagerId(long fundManagerId) {
        this.fundManagerId = fundManagerId;
    }

    @Basic
    @Column(name = "is_delete")
    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    @Basic
    @Column(name = "loc_detail")
    public String getLocDetail() {
        return locDetail;
    }

    public void setLocDetail(String locDetail) {
        this.locDetail = locDetail;
    }

    @Basic
    @Column(name = "partner_type")
    public String getPartnerType() {
        return partnerType;
    }

    public void setPartnerType(String partnerType) {
        this.partnerType = partnerType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YoumuFundManagerPartner that = (YoumuFundManagerPartner) o;
        return id == that.id &&
                fundManagerId == that.fundManagerId &&
                Objects.equals(addTime, that.addTime) &&
                Objects.equals(status, that.status) &&
                Objects.equals(name, that.name) &&
                Objects.equals(isDelete, that.isDelete) &&
                Objects.equals(locDetail, that.locDetail) &&
                Objects.equals(partnerType, that.partnerType);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, addTime, status, name, fundManagerId, isDelete, locDetail, partnerType);
    }
}
